package com.zzf.concurrent.example.design.pattern.immutable;

/**
 * @author GaoFeng2017
 * @date 2019/9/7 16:48
 */
public class ImmutableObject {

    private final String name;
    private final int version;

    public ImmutableObject(String name, int version) {
        this.name = name;
        this.version = version;
    }

    public String getName() {
        return name;
    }

    public int getVersion() {
        return version;
    }

    @Override
    public String toString() {
        return "ImmutableObject{" +
                "name='" + name + '\'' +
                ", version=" + version +
                '}';
    }
}
